package com.ml.mall.entity.variant;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author kyyang
 * Created 2021-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_product_variant_pic")
@ApiModel(value = "SysProductVariantPic对象", description = "")
public class SysProductVariantPic implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @TableField("pic_url")
    private String picUrl;

    /**
     * 产品ID：产品图此处有
     */
    @ApiModelProperty(value = "产品ID：产品图此处有")
    @TableField("product_id")
    private Long productId;

    /**
     * 子产品ID：子产品此处有
     */
    @ApiModelProperty(value = "子产品ID：子产品此处有")
    @TableField("variant_id")
    private Long variantId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField("`index`")
    private Integer index;


}
